package com.bgs.travelapp.passengerType.service.impl;

import com.bgs.travelapp.passengerType.entity.PassengerTypeEntity;
import com.bgs.travelapp.passengerType.mapper.PassengerTypeMapper;
import com.bgs.travelapp.passengerType.service.PassengerTypeService;
import com.bgs.travelapp.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 游客类型模块
 * lzy 2022-8-18 14点43分
 */
@Service
public class PassengerTypeServiceImpl implements PassengerTypeService {

    @Autowired
    PassengerTypeMapper passengerTypeMapper;

    /**
     * 获取游客类型列表
     * lzy 2022-8-18 15点06分
     * @return
     */
    @Override
    public CommonResult getPassengerTypeList() {
        List<PassengerTypeEntity> passengerTypeEntities = passengerTypeMapper.selectAll();
        return CommonResult.ok(passengerTypeEntities);
    }
}
